package com.logicwin.aibala.model.androidSWInfo;

/**
 * 软件信息汇总数据结构
 * 
 * @author GuoDing
 * @since 2011-06-29
 */
public class APKTotalInfo {
	/**
	 * 基础信息
	 */
	private APKListItem basicInfo; 
	
	/**
	 * 详细描述句柄
	 */
	private APKDetailDesc detailDesc;
	
	/**
	 * 软件评论句柄
	 */
	private APKComments swComments;
	
	/**
	 * 同类软件句柄
	 */
	private APKNeighbour swNeighbour;
	
	/**
	 * 谁在用句柄
	 */
	private APKUserInfo swUser;
	
	/**
	 * 软件安装管理句柄
	 */
	private APKFileMgmt swMgmt;
	
	
	/**
	 * 所有软件总信息都来自于软件列表项的创建
	 * @param listItem
	 */
	public APKTotalInfo(APKListItem listItem) {
		this.basicInfo = listItem;
		this.detailDesc = new APKDetailDesc(this);
		this.swComments = new APKComments(this);
		this.swNeighbour = new APKNeighbour(this);
		this.swUser = new APKUserInfo(this);
		this.swMgmt = new APKFileMgmt(this);
	}
	
	public int getId() {
		return this.basicInfo.getID();
	}
	
	public APKListItem getBasicInfo() {
		return this.basicInfo;
	}
	
	public APKDetailDesc getDetailDesc() {
		return this.detailDesc;
	}
	
	public APKComments getCommentsInfo() {
		return this.swComments;
	}
	
	public APKNeighbour getNeighboutInfo() {
		return this.swNeighbour;
	}
	
	public APKUserInfo getUserInfo() {
		return this.swUser;
	}
	
	public APKFileMgmt getAPKFileMgmt() {
		return this.swMgmt;
	}
}







